﻿@using JULONG.WEB.Library
@using DFYE.Web.Models

@model IEnumerable<DFYE.Web.Models.documentType>

@{
    ViewBag.Title = "文档管理";
 
}

<h2>文档管理管理</h2>
<p>
   @Html.ActionLink("新建", "Create")
</p>
@Html.Partial("paging", new { action = "Index" })
<table>
    <tr>
        <th style="width:160px"></th>
        <th>
            类型名
        </th>

        <th>
            文档个数
        </th>
        <th>
            有效
        </th>
    </tr>
@foreach (var item in Model)
{
    <tr>
        <td>
            @Html.ActionLink("编辑", "Edit", new { id=item.ID }) |
            @Html.ActionLink("删除", "Delete", new { id=item.ID }) 
        </td>
        <td>
            @Html.ActionLink(item.name, "Index", "document", new { id = item.ID }, null)
        </td>

        <td>
            @item.document.Count()
        </td>
        <td>
            @(item.able ? "√" : "" )
        </td>
    </tr>
}
</table>
